package com.longshine.arthmetic;
/**
 * 可比较大小的结构
 *  
 *
 * @classname   Comparabel.java 
 * @author      YitianC
 * @version     Revision: 1.1,  Date: 2008/05/14 01:43:47  
 * @history     
 *              Mar 13, 2012 5:12:12 PM  
 *
 */
public class Comparabel {
	
	public int weight;
	
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public int compare(Comparabel com){
		if(weight < com.getWeight()){
			return -1;
		}
		else if(weight == com.getWeight()){
			return 0;
		}
		else return 1;
	}
	
}
